﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QueryData
{
    internal class 查询集合
    {
        void MyMethod()
        {
            var db = new BasicDbContext();

            db.BasicEntities.ToList();
            db.BasicEntities.Where(x => x.Text.StartsWith("keyword")).ToList();
            db.BasicEntities.OrderBy(x => x.Id).ToList();
            db.BasicEntities.OrderByDescending(x => x.Id).ThenBy(x => x.Text).ToList();
            db.BasicEntities.Skip(10).Take(10).ToArray();
        }
    }
}
